-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1819531: propagate referenced ctes to all root nodes #2670
base: main
Are you sure you want to change the base?
Conversation
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
return True | ||
|
||
if isinstance(node, SnowflakePlan) and node.source_plan is not None: | ||
return node._is_valid_for_replacement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i am kind of confused about why we need this function here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add comment for this function?
Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes SNOW-1819531
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
i) SNOW-1748140: Modify schema_expression to be structured type aware. #2659 Fix bug where
referenced_ctes
is not propagated to root when root source plan is one ofSnowflakeCreateTable
,CreateViewCommand
,TableUpdate
,TableDelete
,TableMerge
,ConpyIntoLocationNode
.ii) fix a bug where
relaxed_pipeline_breaker
andis_valid_for_replacement
properties forSnowflakePlan
andSelectSnowflakePlan
were not read correctlyiii) updated plan plotter to color nodes that are not valid for replacement with red color.
iv) updated plan plotter to print number of reference a node contains.